package pers.cz.common.pub;

/**
 * @program: jef-orm
 * @description: 查询条件枚举
 * @author: Cheng Zhi
 * @create: 2023-08-12 16:07
 **/
public enum Operator {
    OR(" or ","或操作"),
    IN(" in ","in操作"),
    GREAT(" > ", "大于"),
    LESS(" < ", "小于"),
    EQUALS(" = ", "等于"),
    NOT_EQUALS(" <> ", "不等于"),
    GREAT_EQUALS(" >= ", "大于等于"),
    LESS_EQUALS(" <= ", "小于等于"),
    IS_NOT_NULL(" !=NULL ", "不等于null"),
    DEFAULT(" = ", "默认操作");

    String opName;
    String opDesc;
    Operator(String opName, String opDesc) {
        this.opName = opName;
        this.opDesc = opDesc;
    }

    public String getOpName() {
        return opName;
    }
}
